export default {
    tweets(state) {
        return state.tweets.sort((a, b) => {
            return b.created_at - a.created_at
        });
    },

    tweet(state) {
        return id => state.tweets.find(t => t.id === id);
    }
}